@extends('lottery.layout')
@section('title')
    线下扫码领奖
@stop
@section('content')
    <div>
        <img src="/img/lottery/title.gif" style="width: 100%">
        <div class="prizeListBox" style="text-align: center">
            @if($type==1)
                <ul>
                    <li style="font-size: 20px">您已经领过了</li>
                    <li class="resultBtn" style="margin:20px;"><a href="javascript:wx.closeWindow();"><span>确定</span></a></li>
                </ul>
                @else
                <ul>
                    <li style="font-size: 20px;margin: 20px ">领取免费赠饮红牛一罐</li>
                    <form action="{{route('lottery.getPrizeByScanPost')}}" method="post">
                        <input type="hidden" name="_token" value="{{csrf_token()}}">
                        <input type="hidden" name="lotteryId" value="{{ $lotteryId }}">
                        <li class="resultBtn"><button type="submit" style="border: 0;border-bottom: 4px solid #D20000">领奖</button> </li>
                    </form>
                </ul>
                @endif
        </div>
    </div>



@stop